package com.eascs.admin.o2o.internal.form;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.NotEmpty;
/**
 * 内审动态表单form
 * @author ycz
 *
 */
@XmlRootElement
public class LoanapplyForm implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6978940513817773402L;
	@NotEmpty(message = "贷款单号为空")
	private String loanapplyNo;
	@NotNull(message="请选择期限")
	private Integer loanTerm;//期限
	@NotEmpty(message="请选择还款方式")
	private String  repayMentway;//还款方式
	private BigDecimal  loanrate;//利率
	@NotNull(message="请选择保证金费率")
	private BigDecimal depositrate;//保证金费率
	@NotNull(message="请选择管理费率")
	private BigDecimal managefeerate;//管理费率
	@NotNull(message="请选择风险补偿金")
	private BigDecimal risk;//风险补偿金
	private String remark;//备注信息
	@Min(value=50000,message="EA批复额度必须大于5万元")
	@Max(value=1000000,message="EA批复额度不能超过100万元")
	@NotNull(message="EA批复额度不能为空")
	private BigDecimal eaMount;//EA批复额度
	@NotEmpty(message="贷款用途不能为空")
	private String paymentType;
	@NotEmpty(message="送审银行不能为空")
	private String bankLoanName;//放款银行
	@NotNull(message="综合费率不能为空")
	private BigDecimal generalRate;//综合费率
	private String buybackId;//回购ID
	private String buybackCode;//回购担保方编码
	private String buybackName;//回购担保名称
	private String nodeCode;//节点CODE
	/**
	 * 内部推荐人
	 */
	private String referrerName;
	/**
	 * 内部推荐人id
	 */
	private String referrerNo;
	/**
	 * 外部推荐方
	 */
	private String commiceRecommend;
	/**
	 * 担保方式
	 */
	private String guarAnteeWay;
	/**
	 * 推荐类型(数据字典)
	 */
	private String recommendType;
	public String getLoanapplyNo() {
		return loanapplyNo;
	}
	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}
	public Integer getLoanTerm() {
		return loanTerm;
	}
	public void setLoanTerm(Integer loanTerm) {
		this.loanTerm = loanTerm;
	}
	public String getRepayMentway() {
		return repayMentway;
	}
	public void setRepayMentway(String repayMentway) {
		this.repayMentway = repayMentway;
	}
	public BigDecimal getLoanrate() {
		return loanrate;
	}
	public void setLoanrate(BigDecimal loanrate) {
		this.loanrate = loanrate;
	}
	public BigDecimal getDepositrate() {
		return depositrate;
	}
	public void setDepositrate(BigDecimal depositrate) {
		this.depositrate = depositrate;
	}
	public BigDecimal getManagefeerate() {
		return managefeerate;
	}
	public void setManagefeerate(BigDecimal managefeerate) {
		this.managefeerate = managefeerate;
	}
	public BigDecimal getRisk() {
		return risk;
	}
	public void setRisk(BigDecimal risk) {
		this.risk = risk;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public BigDecimal getEaMount() {
		return eaMount;
	}
	public void setEaMount(BigDecimal eaMount) {
		this.eaMount = eaMount;
	}
	public String getPaymentType() {
		return paymentType;
	}
	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}
	public String getBankLoanName() {
		return bankLoanName;
	}
	public void setBankLoanName(String bankLoanName) {
		this.bankLoanName = bankLoanName;
	}
	public BigDecimal getGeneralRate() {
		return generalRate;
	}
	public void setGeneralRate(BigDecimal generalRate) {
		this.generalRate = generalRate;
	}
	public String getBuybackId() {
		return buybackId;
	}
	public void setBuybackId(String buybackId) {
		this.buybackId = buybackId;
	}
	public String getBuybackCode() {
		return buybackCode;
	}
	public void setBuybackCode(String buybackCode) {
		this.buybackCode = buybackCode;
	}
	public String getBuybackName() {
		return buybackName;
	}
	public void setBuybackName(String buybackName) {
		this.buybackName = buybackName;
	}
	public String getNodeCode() {
		return nodeCode;
	}
	public void setNodeCode(String nodeCode) {
		this.nodeCode = nodeCode;
	}
	public String getReferrerName() {
		return referrerName;
	}
	public void setReferrerName(String referrerName) {
		this.referrerName = referrerName;
	}
	public String getReferrerNo() {
		return referrerNo;
	}
	public void setReferrerNo(String referrerNo) {
		this.referrerNo = referrerNo;
	}
	public String getCommiceRecommend() {
		return commiceRecommend;
	}
	public void setCommiceRecommend(String commiceRecommend) {
		this.commiceRecommend = commiceRecommend;
	}
	public String getGuarAnteeWay() {
		return guarAnteeWay;
	}
	public void setGuarAnteeWay(String guarAnteeWay) {
		this.guarAnteeWay = guarAnteeWay;
	}
	public String getRecommendType() {
		return recommendType;
	}
	public void setRecommendType(String recommendType) {
		this.recommendType = recommendType;
	}
	@Override
	public String toString() {
		return "LoanapplyForm [loanapplyNo=" + loanapplyNo + ", loanTerm=" + loanTerm + ", repayMentway=" + repayMentway
				+ ", loanrate=" + loanrate + ", depositrate=" + depositrate + ", managefeerate=" + managefeerate
				+ ", risk=" + risk + ", remark=" + remark + ", eaMount=" + eaMount + ", paymentType=" + paymentType
				+ ", bankLoanName=" + bankLoanName + ", generalRate=" + generalRate + ", buybackId=" + buybackId
				+ ", buybackCode=" + buybackCode + ", buybackName=" + buybackName + ", nodeCode=" + nodeCode
				+ ", referrerName=" + referrerName + ", referrerNo=" + referrerNo + ", commiceRecommend="
				+ commiceRecommend + ", guarAnteeWay=" + guarAnteeWay + "]";
	}
}
